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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0xc]
mov byte [eax], 0
test byte [esi + 4], 0x80
push edi
mov edi, dword [ebp + 8]
mov dword [esi + 0x1c], ebx
jne 0x5464c5
or dword [esi], 2
mov eax, dword [edi]
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0x13
push edi
call dword [eax + 0x38]
test eax, eax
jl 0x5464c5
cmp dword [ebp - 0x18], 0x14
je 0x5464b1
mov ebx, 0x80004005
jmp 0x54666a
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp - 0x10]
push 5
add edi, 0x24
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push edi
call dword [eax + 0xc]
lea ecx, [esi + 0x58]
push ecx
push 0xe
mov dword [esi + 0x40], eax
mov eax, dword [edi]
push edi
call dword [eax + 0x48]
mov eax, dword [edi]
lea ecx, [esi + 0x50]
push ecx
push 0xb
push edi
call dword [eax + 0x40]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push ebx
mov ebx, dword [ebp + 0x10]
call fcn.00536dad
mov ebx, eax
test ebx, ebx
mov eax, dword [ebp + 0x1c]
mov byte [eax], 0
jge 0x54652f
mov edi, 0x51811a88
mov eax, 0x48d0c8
call fcn.004e851f
movzx eax, al
test eax, eax
je 0x54652f
mov eax, dword [ebp - 8]
test eax, eax
je 0x54666a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x54666a
mov eax, dword [ebp - 8]
and dword [ebp - 0x14], 0
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x82
push eax
call dword [ecx + 0x48]
test byte [ebp - 0x14], 2
je 0x546562
mov eax, dword [ebp - 8]
test eax, eax
je 0x546558
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, 0x80001003
jmp 0x54666a
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp - 8]
add esi, 0x98
mov byte [eax], 1
call fcn.00504421
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
lea eax, [ebx + 0x38]
push eax
push 8
push esi
call dword [ecx + 0x58]
lea edi, [ebx + 0x14]
lea eax, [ebx + 0x38]
call fcn.004e74f9
lea ecx, [ebp + 0xc]
call fcn.004e727a
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp + 0xc]
push edx
push 8
push eax
call dword [ecx + 0x58]
mov eax, dword [edi]
mov edx, dword [ebp + 0xc]
call fcn.004e6be5
test eax, eax
je 0x5465c0
lea eax, [ebp + 0xc]
call fcn.004e74f9
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004e6737
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebx + 0x48]
push edx
push 0x78
push eax
call dword [ecx + 0x40]
mov eax, dword [esi]
lea ecx, [ebx + 0x18]
push ecx
push 0x3d
push esi
call dword [eax + 0x58]
lea ecx, [ebx + 0x24]
push ecx
lea eax, [ebp - 1]
push eax
lea eax, [ebx + 0x38]
push eax
push dword [ebp + 0x14]
mov byte [ebp - 1], 0
push 2
pop eax
call fcn.0050d8ef
test eax, eax
mov dword [ebp + 0x1c], eax
jge 0x546617
mov edi, 0xee2be7b4
mov eax, 0x48d0c8
call fcn.004e851f
cmp byte [ebp - 1], 0
je 0x5466ad
lea ecx, [ebp - 0xc]
call fcn.004e727a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebx + 0x38]
push 2
push eax
lea edx, [ebx + 0x24]
call fcn.0050de9a
add esp, 0xc
test al, al
jne 0x546649
mov dword [ebp + 0x1c], 0x80004005
cmp dword [ebp + 0x1c], 0
jge 0x546678
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.004e6737
mov eax, dword [ebp - 8]
test eax, eax
je 0x546667
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, dword [ebp + 0x1c]
push 0
call fcn.004e6ab7
mov eax, ebx
jmp 0x5469e7
mov eax, dword [esi]
lea ecx, [ebp + 0xf]
push ecx
push 0x12
push esi
mov byte [ebp + 0xf], 6
call dword [eax + 0x54]
movzx eax, byte [ebp + 0xf]
mov edi, dword [ebp - 0xc]
push edi
push eax
lea eax, [ebx + 0x3c]
push 0x482a34
push eax
call fcn.004e86c1
or dword [ebx], 1
add esp, 0x10
lea eax, [edi - 0x10]
call fcn.004e6737
cmp dword [ebx + 0x40], 2
jne 0x54670d
push 0
lea eax, [ebp - 1]
push eax
lea eax, [ebx + 0x38]
push 0
push eax
lea esi, [ebp + 0xc]
mov byte [ebp - 1], 0
call fcn.004f1729
pop ecx
pop ecx
push eax
push dword [ebp + 0x14]
mov ecx, 0x487ac4
push 3
pop eax
call fcn.0050d8ef
mov esi, eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004e6737
test esi, esi
jge 0x546700
mov edi, 0xc20bef83
mov eax, 0x48d0c8
call fcn.004e851f
jmp 0x54670a
cmp byte [ebp - 1], 0
je 0x54670a
or byte [ebx + 1], 1
mov esi, dword [ebp + 8]
mov eax, dword [esi]
lea edi, [ebx + 0xc]
push edi
push 9
push esi
call dword [eax + 0x58]
test eax, eax
jge 0x546724
mov eax, edi
call fcn.004e4a36
mov eax, dword [ebx + 0x40]
cmp eax, 1
jne 0x5467e7
mov eax, dword [esi]
lea edi, [ebx + 0x74]
push edi
push 0x21
push esi
call dword [eax + 0x58]
push dword [edi]
lea eax, [ebp + 0x1c]
push eax
call fcn.0051f1d6
pop ecx
pop ecx
call fcn.004e74f9
mov eax, dword [ebp + 0x1c]
add eax, 0xfffffff0
call fcn.004e6737
mov eax, dword [esi]
lea edi, [ebx + 0x78]
push edi
push 0x22
push esi
call dword [eax + 0x58]
push dword [edi]
lea eax, [ebp + 0x1c]
push eax
call fcn.0051f1d6
pop ecx
pop ecx
call fcn.004e74f9
mov eax, dword [ebp + 0x1c]
add eax, 0xfffffff0
call fcn.004e6737
mov ecx, dword [esi]
lea eax, [ebx + 0xc]
push eax
push 0x20
push esi
call dword [ecx + 0x58]
test eax, eax
jge 0x5467a1
mov edi, 0x28a94cc0
mov eax, 0x48d0c8
call fcn.004e851f
mov eax, dword [esi]
and dword [ebp + 0xc], 0
lea ecx, [ebp + 0xc]
push ecx
push 0x25
push esi
call dword [eax + 0x4c]
test eax, eax
jl 0x5467c7
test byte [ebp + 0xc], 1
je 0x5467be
or dword [ebx], 0x10
test byte [ebp + 0xc], 2
je 0x5467c7
or dword [ebx], 0x20
mov eax, dword [esi]
lea ecx, [ebx + 0x7c]
push ecx
push 7
push esi
call dword [eax + 0x58]
lea ecx, [ebx + 0x80]
push ecx
push 0x28
mov eax, dword [esi]
push esi
call dword [eax + 0x58]
jmp 0x54688a
cmp eax, 3
jne 0x5467f4
lea ecx, [ebx + 0x74]
push ecx
push 0x1c
jmp 0x5467dc
cmp eax, 5
jne 0x546807
push ebx
push esi
call fcn.005459b3
pop ecx
pop ecx
jmp 0x54688a
cmp eax, 9
je 0x546820
cmp eax, 0xa
je 0x546820
cmp eax, 0xb
je 0x546820
cmp eax, 0xc
je 0x546820
cmp eax, 0xd
jne 0x54688a
mov eax, dword [esi]
lea ecx, [ebx + 0x7c]
push ecx
push 7
push esi
call dword [eax + 0x58]
mov eax, dword [esi]
lea ecx, [ebx + 0x80]
push ecx
push 0x28
push esi
call dword [eax + 0x58]
lea edi, [ebx + 0x74]
lea eax, [ebx + 0xc]
call fcn.004e74f9
mov eax, dword [ebx + 0x40]
sub eax, 9
je 0x546880
dec eax
je 0x546878
dec eax
je 0x54686e
dec eax
je 0x546863
dec eax
jne 0x54688a
mov eax, ebx
call fcn.0054628b
jmp 0x54688a
mov eax, ebx
mov ecx, esi
call fcn.00546218
jmp 0x54688a
push esi
mov eax, ebx
call fcn.00546015
jmp 0x546801
push ebx
call fcn.00545f31
jmp 0x546801
mov eax, dword [ebp + 8]
mov esi, ebx
call fcn.00546334
cmp dword [ebx + 0x40], 3
jne 0x5469aa
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x5469aa
cmp dword [eax + 0x18], 0
jle 0x5469aa
lea edi, [ebx + 0xc]
mov esi, dword [edi]
cmp dword [esi - 0xc], 0
je 0x5468d5
push esi
push dword [ebx + 0x74]
call fcn.004f2e82
test eax, eax
pop ecx
pop ecx
jge 0x5468d5
mov eax, dword [ebx + 0x38]
mov edx, esi
call fcn.004e6be5
test eax, eax
jne 0x5469aa
lea ecx, [ebp + 0xc]
call fcn.004e727a
lea eax, [ebp + 0xc]
push eax
xor esi, esi
push esi
push esi
lea eax, [ebx + 0x38]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 1]
lea ecx, [ebx + 0x24]
mov byte [ebp - 1], 0
call fcn.0050dc9f
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], esi
je 0x546997
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0x18]
push 8
pop ecx
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 0x1c]
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x3c], 1
call fcn.004e727a
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp + 0x1c]
push edx
push 0x1d
push eax
call dword [ecx + 0x58]
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0x74]
call fcn.00506094
pop ecx
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
lea ecx, [ebp + 0x1c]
call fcn.005060a5
add esp, 0xc
lea edi, [ebx + 0xc]
call fcn.004e74f9
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004e6737
lea edi, [ebp - 0x24]
call fcn.004f38f3
mov eax, dword [ebp + 0x1c]
add eax, 0xfffffff0
call fcn.004e6737
jmp 0x54699f
lea eax, [ebx + 0x74]
call fcn.004e74f9
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004e6737
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ebx, 0x84
push ebx
push 0x7d
push eax
call dword [ecx + 0x48]
mov esi, eax
test esi, esi
jge 0x5469d1
mov edi, 0xbd853903
mov eax, 0x48d0c8
call fcn.004e851f
mov eax, dword [ebp - 8]
test eax, eax
je 0x5469de
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0
call fcn.004e6ab7
mov eax, esi
pop ecx
pop edi
pop esi
pop ebx
leave
ret