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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.005109a0
mov dword [esp + 0x10], eax
xor ebp, ebp
mov ebx, 1
lea esp, [esp]
cmp dword [esp + 0x38], ebp
jne 0x54895e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
mov ecx, dword [esi + 0x28]
push eax
call fcn.00526ae0
cmp eax, ebx
je 0x548d12
call fcn.004e22c0
cmp dword [esp + 0x30], ebx
mov dword [esp + 0x1c], ebx
jl 0x548cec
mov ecx, dword [esi + 0x28]
mov edx, dword [esp + 0x1c]
mov dword [ecx + 0x9c], edx
mov eax, dword [esi + 0x30]
mov cx, word [eax + 8]
call fcn.00512ac0
cmp eax, ebp
mov dword [esp + 0x24], eax
mov edi, ebx
je 0x5489a5
mov cx, word [eax]
mov edx, dword [eax + 4]
mov word [esp + 0x20], cx
mov dword [esp + 0x24], edx
jmp 0x5489ae
mov ax, word [esi + 0x24]
mov word [esp + 0x20], ax
mov ecx, dword [esi + 0x28]
mov dword [ecx + 0x98], edi
mov edx, dword [esi + 0x30]
xor eax, eax
mov ax, word [edx + 0xe]
inc edi
cmp ax, bp
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], ebx
je 0x5489fb
mov ecx, dword [esp + 0x10]
push ebp
push esi
push 0xffffffffffffffff
push esi
push 2
push eax
call fcn.00512700
test eax, eax
jne 0x5489fb
mov ecx, dword [esp + 0x10]
add ecx, 0x38
call fcn.004f6360
cmp eax, ebp
mov dword [esp + 0x14], eax
jg 0x5489fb
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
jl 0x548ca4
lea esp, [esp]
mov eax, dword [esi + 0x28]
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x94], ecx
mov edx, dword [esi + 0x28]
mov eax, dword [esp + 0x34]
mov dword [edx + 0x8c], eax
mov eax, dword [esi + 0x28]
mov dl, byte [eax + 0xdc]
or dl, 4
mov ecx, 0xe8
mov byte [eax + 0xdc], dl
call fcn.004dc5a0
cmp eax, ebp
je 0x548a53
mov ecx, eax
call fcn.0054b980
jmp 0x548a55
xor eax, eax
mov cl, byte [esi + 0xbd]
mov dword [esi + 0x3c], eax
or cl, 0x20
mov byte [esi + 0xbd], cl
or byte [eax + 0xe2], 2
mov eax, dword [esi + 0x3c]
or byte [eax + 0xe2], 4
mov eax, dword [0x676b4c]
inc eax
mov dword [0x676b4c], eax
mov ecx, dword [esi + 0x38]
mov dword [esi + 0x88], eax
call fcn.004fccd0
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0x28]
push esi
push ecx
mov ecx, dword [esi + 0x3c]
push edx
call fcn.0054ba20
mov ecx, dword [esi + 0x3c]
call fcn.00549650
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx + 8]
cmp word [eax + 0x2a], bp
je 0x548ad5
xor edx, edx
mov dx, word [eax + 0x2a]
push ebp
push esi
push esi
lea ecx, [esp + 0x1c]
push edx
call fcn.005113e0
test eax, eax
jne 0x548cdd
mov ecx, dword [esi + 0x3c]
call fcn.00549690
mov ecx, dword [esi + 0x3c]
call fcn.0054b0e0
mov eax, dword [esi + 0x3c]
and byte [eax + 8], 0xdf
mov dl, byte [esi + 0xbd]
and dl, 0xdf
mov ecx, 0x90
mov byte [esi + 0xbd], dl
call fcn.004dc5a0
cmp eax, ebp
je 0x548b21
mov edx, dword [esi + 0x3c]
mov ecx, dword [edx + 0x54]
push edx
mov edx, dword [edx + 0x50]
push esi
push ecx
push edx
mov ecx, eax
call fcn.004f0a10
mov edi, eax
jmp 0x548b23
xor edi, edi
mov eax, dword [esi + 0x28]
mov dword [eax + 0x90], ebx
lea esp, [esp]
mov ecx, dword [esi + 0x28]
mov edx, dword [esp + 0x34]
mov dword [ecx + 0x8c], edx
mov eax, dword [esi + 0x28]
or byte [eax + 0xdc], 4
mov ecx, dword [esi + 0x3c]
call fcn.0057c180
mov ecx, dword [esi + 0x3c]
mov eax, dword [ecx + 0x78]
cmp eax, ebx
jle 0x548b6e
cmp dword [ecx + 0x8c], eax
jne 0x548b6e
test byte [ecx + 0xe2], bl
je 0x548b6e
call fcn.0054b070
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + 0x78]
cmp ecx, ebx
jle 0x548b88
cmp dword [eax + 0x88], ebx
jne 0x548b90
cmp dword [eax + 0x8c], ecx
jne 0x548b90
and byte [eax + 0xe2], 0xfb
nop
mov eax, dword [esi + 0x28]
test byte [eax + 0xdc], 4
jne 0x548ba5
mov ecx, dword [esi + 0x3c]
push ebx
call fcn.0057c080
mov ecx, dword [esi + 0x3c]
push ebx
push ebp
push edi
call fcn.0054aea0
mov ecx, dword [esi + 0x3c]
call fcn.0057bc80
cmp eax, ebx
jne 0x548be7
mov ecx, dword [esi + 0x3c]
push ebp
call fcn.0057c080
mov ecx, dword [esi + 0x3c]
mov eax, dword [ecx + 0xcc]
xor edx, edx
cmp eax, ebp
setne dl
push ebp
push edx
push edi
call fcn.0054aea0
mov ecx, dword [esi + 0x3c]
call fcn.0057bc80
jmp 0x548bfd
mov eax, dword [esi + 0x28]
test byte [eax + 0xdc], 4
je 0x548bfd
mov eax, dword [esi + 0x3c]
and byte [eax + 0xe2], 0xfd
mov ecx, dword [esi + 0x3c]
push 0x200
call fcn.004eb230
mov ecx, dword [esi + 0x3c]
call fcn.0057c050
mov ecx, ebx
call fcn.004e2300
mov ecx, edi
call fcn.0057d280
call fcn.004e22c0
mov ecx, dword [esi + 0x3c]
call fcn.0057bbf0
mov eax, dword [esi + 0x28]
and byte [eax + 0xdc], 0xfb
mov eax, dword [esi + 0x28]
cmp dword [eax + 0xd8], ebx
je 0x548c4f
test byte [eax + 0xdd], 2
jne 0x548b90
mov eax, dword [esi + 0x28]
cmp dword [eax + 0xd8], ebx
je 0x548c66
test byte [eax + 0xdd], bl
jne 0x548b30
cmp edi, ebp
je 0x548c71
mov edx, dword [edi]
push ebx
mov ecx, edi
call dword [edx]
mov ecx, dword [esi + 0x3c]
cmp ecx, ebp
je 0x548c7d
mov eax, dword [ecx]
push ebx
call dword [eax]
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x3c], ebp
cmp dword [ecx + 0xd8], ebx
je 0x548ca0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jle 0x548a10
mov edi, dword [esp + 0x28]
mov edx, dword [esi + 0x28]
cmp dword [edx + 0xd8], ebx
je 0x548cbb
mov eax, dword [esp + 0x24]
cmp eax, ebp
jne 0x548994
mov eax, dword [esi + 0x28]
cmp dword [eax + 0xd8], ebx
je 0x548cec
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jle 0x548971
jmp 0x548cec
mov ecx, dword [esi + 0x3c]
cmp ecx, ebp
je 0x548ce9
mov edx, dword [ecx]
push ebx
call dword [edx]
mov dword [esi + 0x3c], ebp
mov ecx, ebx
call fcn.004e2300
cmp dword [esp + 0x38], ebp
jne 0x548d12
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
mov ecx, dword [esi + 0x28]
push eax
push esi
call fcn.00526e50
cmp eax, ebx
je 0x548940
mov ecx, dword [esp + 0x10]
call fcn.00510990
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc