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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [esp + 0x50]
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [eax + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
call fcn.004c33f0
mov eax, dword [esp + 0x18]
imul ebp, dword [eax + 0x1c], 0xb8
add ebp, dword [eax]
mov eax, dword [esp + 0x5c]
cmp dword [eax + 0x1c], 0
jne 0x4c35ce
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax + 0xc]
test byte [eax + 0x10], 0x20
je 0x4c38cc
mov eax, dword [ebp]
mov dword [esp + 0x28], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
lea eax, [ebp + 0x24]
mov dword [esp], eax
mov dword [esp + 0x24], eax
call fcn.00698597
push esi
mov edx, dword [ebp + 0x2c]
lea esi, [ebx + 0x2d4]
mov eax, dword [ebx + 0x3c]
mov ecx, 3
mov dword [edx + 0x3c], eax
mov eax, dword [ebx + 0x74]
mov dword [edx + 0x74], eax
mov eax, dword [ebx + 0x190]
mov dword [edx + 0x190], eax
mov eax, dword [ebx + 0x20]
mov dword [edx + 0x20], eax
mov eax, dword [ebx + 0x240]
mov dword [edx + 0x240], eax
mov eax, dword [ebx + 0x340]
mov dword [edx + 0x340], eax
mov eax, dword [ebx + 0xf0]
mov dword [edx + 0xf0], eax
mov eax, dword [ebx + 0x40]
mov dword [edx + 0x40], eax
lea eax, [edx + 0x2d4]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x168]
mov esi, dword [ebx + 0x248]
mov edi, dword [ebx + 0x24c]
mov dword [edx + 0x168], eax
mov eax, dword [ebx + 0x2bc]
mov dword [edx + 0x248], esi
mov dword [edx + 0x24c], edi
mov dword [edx + 0x2bc], eax
mov eax, dword [ebx + 0xb0]
test eax, eax
je 0x4c36e1
cmp dword [ebx + 0xb8], 0
je 0x4c36e1
cmp eax, dword [edx + 0xb0]
jg 0x4c36b4
mov eax, dword [ebx + 0xb0]
mov esi, dword [ebx + 0xb8]
mov edi, dword [edx + 0xb8]
lea ecx, [eax*4]
rep movsb byte es:[edi], byte [esi]
jmp 0x4c36e1
mov dword [esp + 4], eax
lea eax, [edx + 0xb8]
mov dword [esp + 8], 4
mov dword [esp + 0x2c], edx
mov dword [esp], eax
call fcn.00648992
test eax, eax
mov esi, eax
mov edx, dword [esp + 0x2c]
jns 0x4c3697
jmp 0x4c38ba
mov eax, dword [ebx + 0xb0]
mov dword [edx + 0xb0], eax
mov eax, dword [ebp + 0x2c]
movzx eax, word [eax + 0x242]
and eax, 1
mov dword [ebp + 0xb0], eax
mov eax, ebp
call fcn.004c34e8
cmp dword [esp + 0x1c], 0
je 0x4c3772
mov eax, dword [esp + 0x1c]
lea edi, [eax + 0x84]
mov eax, dword [eax + 0x84]
dec eax
jne 0x4c3757
mov eax, dword [esp + 0x1c]
lea esi, [eax + 0x28]
mov dword [esp], esi
call fcn.00698597
push ecx
mov eax, dword [esp + 0x1c]
add eax, 0x1c
mov dword [esp + 0x2c], eax
mov eax, dword [edi]
dec eax
jne 0x4c374e
mov eax, dword [esp + 0x2c]
mov edx, esi
call fcn.004c316d
jmp 0x4c373c
mov dword [esp], esi
call fcn.0069858f
push edx
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp + 0x2c]
call fcn.004c31d5
test eax, eax
mov esi, eax
jne 0x4c38ba
lea esi, [ebp + 0x30]
mov dword [esp], esi
call fcn.0047c59e
mov eax, dword [esp + 0x5c]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0047c9e0
test eax, eax
mov esi, eax
jns 0x4c37c0
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.0069858f
push eax
mov dword [esp + 8], 0x6f087f
mov dword [esp + 4], 0x10
mov eax, dword [ebp + 0x2c]
mov dword [esp], eax
call fcn.00647705
jmp 0x4c3a34
lea edi, [ebp + 0x84]
mov eax, 1
xchg dword [edi], eax
lea eax, [ebp + 0x18]
mov dword [esp], eax
call dword [0x924618]
push eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.0069858f
push eax
mov eax, dword [ebp + 0x2c]
cmp dword [eax + 0x2bc], 0
je 0x4c3802
mov eax, dword [esp + 0x28]
mov dword [eax + 4], ebp
inc dword [eax + 0x1c]
jmp 0x4c38cc
cmp dword [eax + 0x78], 0x47d651
jne 0x4c3817
cmp dword [eax + 0x190], 0x47dc2b
je 0x4c37f3
lea eax, [ebp + 0x1c]
lea esi, [ebp + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [edi]
cmp eax, 4
je 0x4c37f3
mov eax, dword [edi]
test eax, eax
je 0x4c37f3
mov dword [esp], esi
call fcn.00698597
push eax
mov eax, dword [edi]
dec eax
jne 0x4c3849
mov eax, dword [esp + 0x1c]
mov edx, esi
call fcn.004c316d
jmp 0x4c3837
mov eax, dword [edi]
cmp eax, 2
je 0x4c3872
cmp eax, 3
jne 0x4c38ac
mov eax, dword [ebp + 0x9c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x2c]
mov dword [esp], eax
call fcn.00480015
mov dword [ebp + 0xa0], eax
jmp 0x4c3897
mov eax, dword [ebp + 0x98]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x94]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x2c]
mov dword [esp], eax
call fcn.00480cf5
mov dword [ebp + 0x80], eax
mov eax, 1
xchg dword [edi], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call dword [0x924618]
push eax
mov dword [esp], esi
call fcn.0069858f
push eax
jmp 0x4c3821
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.0069858f
push edx
jmp 0x4c3a34
mov eax, dword [ebx + 0x2b0]
xor edx, edx
mov ecx, dword [esp + 0x18]
dec eax
cmp dword [ebx + 0x10], 0x21
sete dl
sub eax, edx
cmp dword [ecx + 0x1c], eax
jle 0x4c38f2
mov eax, dword [esp + 0x18]
mov dword [eax + 0x24], 0
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x24], 0
je 0x4c3915
mov eax, dword [esp + 0x58]
mov dword [eax], 0
mov eax, dword [esp + 0x5c]
mov esi, dword [eax + 0x1c]
test esi, esi
jne 0x4c3a34
mov eax, dword [esp + 0x20]
imul ecx, eax, 0xb8
lea ebp, [eax + 1]
mov eax, dword [esp + 0x18]
add ecx, dword [eax]
lea eax, [ecx + 0x84]
mov edi, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x84]
test eax, eax
je 0x4c3971
lea esi, [ecx + 0x28]
mov dword [esp], esi
call fcn.00698597
push eax
lea eax, [edi + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
test eax, eax
je 0x4c3968
mov eax, dword [esp + 0x20]
mov edx, esi
call fcn.004c316d
jmp 0x4c3951
mov dword [esp], esi
call fcn.0069858f
push ecx
mov eax, dword [edi + 0x78]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.006444cb
mov eax, dword [edi + 0x7c]
mov ecx, dword [esp + 0x58]
mov edx, dword [edi + 0x44]
mov dword [ecx], eax
mov eax, dword [edi + 0x40]
mov ecx, dword [esp + 0x54]
cmp ebp, dword [ebx + 0x2b0]
mov esi, dword [edi + 0x80]
mov dword [ecx + 0x78], eax
mov eax, 0
mov dword [ecx + 0x7c], edx
cmovl eax, ebp
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x5c]
cmp dword [eax + 0x1c], 0
je 0x4c39fb
mov edx, dword [edi + 0x2c]
mov ecx, 1
mov eax, ebx
call fcn.004c31d5
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x2b0]
cmp dword [eax + 0x1c], ecx
jl 0x4c3a1e
mov eax, dword [esp + 0x18]
mov dword [eax + 0x1c], 0
jmp 0x4c3a1e
mov eax, dword [esp + 0x58]
cmp dword [eax], 0
jne 0x4c39d0
mov eax, esi
sub eax, 0
js 0x4c39d0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax + 0x20]
jne 0x4c3915
jmp 0x4c39d0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
test esi, esi
mov dword [eax + 0x20], ecx
js 0x4c3a34
mov eax, dword [esp + 0x5c]
mov esi, dword [eax + 0x1c]
mov eax, dword [esp + 0x18]
call fcn.004c3196
add esp, 0x3c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret