Function at 0x549c40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x575d81
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 0x18]
test esi, esi
je 0x549c98
lea esp, [esp]
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
test eax, eax
jne 0x54a10c
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x549c80
xor eax, eax
mov ecx, 0x5b1f04
mov dword [edi + 0x48], eax
call fcn.004197c0
test eax, eax
je 0x54a0f4
mov eax, dword [ebp + 8]
add eax, 0xc
mov dword [esp + 0x38], eax
lea esp, [esp]
mov edx, dword [0x5e736c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5e736c
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov esi, dword [ebp + 0xc]
push 0x590f64
push esi
lea ebx, [esp + 0x28]
mov dword [esp + 0xe0], 0
call fcn.00419530
mov eax, dword [esi + 0x48]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x3c], 3
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x44], 1
mov dword [esp + 0x54], ebx
je 0x549d48
lea edi, [eax + 0x2c]
mov esi, 0x5a03bc
call fcn.0041e3f0
cmp eax, ebx
je 0x549d48
mov eax, dword [eax + 0x18]
lea ecx, [esp + 0x34]
push ecx
add eax, 8
push 0x58ded0
push eax
call dword [sym.imp.MSVCR80.dll_sscanf_s]
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x48]
cmp eax, ebx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x3c], edx
je 0x549d85
lea edi, [eax + 0x2c]
mov esi, str.nextpromotion
call fcn.0041e3f0
cmp eax, ebx
je 0x549d85
mov eax, dword [eax + 0x18]
lea ecx, [esp + 0x40]
push ecx
add eax, 8
push 0x58ded0
push eax
call dword [sym.imp.MSVCR80.dll_sscanf_s]
add esp, 0xc
mov edx, dword [0x5e736c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5e736c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov esi, dword [ebp + 0xc]
push str.lastendletime
push esi
lea ebx, [esp + 0x20]
mov byte [esp + 0xe0], 1
call fcn.00419530
mov ecx, dword [esp + 0x18]
push 0xa
xor ebx, ebx
push ebx
push ecx
call dword [sym.imp.MSVCR80.dll__wcstoui64]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x48]
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x50], edx
je 0x549e03
lea edi, [eax + 0x2c]
mov esi, str.switchPromotion
call fcn.0041e3f0
cmp eax, ebx
je 0x549e03
mov eax, dword [eax + 0x18]
lea edx, [esp + 0x44]
push edx
add eax, 8
push 0x58ded0
push eax
call dword [sym.imp.MSVCR80.dll_sscanf_s]
add esp, 0xc
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x24]
push eax
push ecx
mov byte [esp + 0xe0], 2
call fcn.0054a190
mov eax, dword [esp + 0x20]
sub esp, 0x20
mov edi, esp
mov ecx, 8
lea esi, [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x40], esp
mov esi, esp
mov dword [esp + 0x40], eax
call fcn.00410660
lea edx, [esp + 0x88]
add eax, 0x10
push edx
mov dword [esi], eax
call fcn.0054a760
add esp, 0x28
mov esi, eax
mov byte [esp + 0xd8], 3
mov eax, dword [esi]
sub eax, 0x10
call fcn.00410660
add eax, 0x10
add esi, 8
mov ecx, 8
lea edi, [esp + 0x94]
mov dword [esp + 0x8c], eax
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0xb8]
push ecx
mov byte [esp + 0xe0], 4
call fcn.005471d0
mov byte [esp + 0xd8], 3
mov eax, dword [esp + 0x8c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x549edb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov bl, 2
mov byte [esp + 0xd8], bl
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x549f04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x70], esp
push ecx
lea ecx, [esp + 0x38]
call fcn.00547890
mov eax, dword [esp + 0x2c]
push ecx
mov byte [esp + 0xec], 5
mov dword [esp + 0x28], esp
mov edi, esp
call fcn.00410660
add eax, 0x10
lea edx, [esp + 0x78]
mov dword [edi], eax
push edx
mov byte [esp + 0xf0], bl
call fcn.0054a7f0
add esp, 0x18
mov edi, eax
mov byte [esp + 0xd8], 6
mov eax, dword [edi]
sub eax, 0x10
call fcn.00410660
add eax, 0x10
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x90]
lea ecx, [edi + 4]
push eax
mov byte [esp + 0xdc], 7
call fcn.00547890
mov ebx, dword [esp + 0x38]
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0xc4]
push edx
mov byte [esp + 0xe0], 8
call fcn.00547530
mov byte [esp + 0xd8], 6
mov esi, dword [esp + 0x94]
xor ebx, ebx
cmp esi, ebx
je 0x549fd3
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x98]
push eax
mov eax, esi
call fcn.004c7980
add esp, 4
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x8c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x549ff6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xd8], 2
mov eax, dword [esp + 0x6c]
cmp eax, ebx
je 0x54a024
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x70]
push ecx
call fcn.004c7980
mov edx, dword [esp + 0x70]
add esp, 4
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x54a050
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x54a076
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x2c]
push ecx
call fcn.004c7980
mov edx, dword [esp + 0x2c]
add esp, 4
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov byte [esp + 0xd8], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x54a0a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xd8], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x54a0d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi + 0x48]
mov esi, dword [ecx + 0x28]
cmp esi, ebx
je 0x54a0f4
mov edi, edi
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x54a11a
mov esi, dword [esi + 0x28]
cmp esi, ebx
jne 0x54a0e0
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
jmp 0x549c9a
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
cmp eax, ebx
je 0x54a0f4
mov dword [edi + 0x48], eax
jmp 0x549cc0