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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
xor esi, esi
mov edi, 1
cmp eax, esi
mov dword [0x48f770], edi
mov dword [0x48f6dc], esi
jne 0x42cd7d
mov dword [esp + 0x84], 0x48f688
mov eax, dword [esp + 0x84]
push eax
call fcn.00427050
mov ebx, dword [esp + 0x84]
add esp, 4
mov ecx, ebx
mov edx, dword [ebx]
push 0x50
push 0x48f620
call dword [edx + 0x34]
cmp dword [0x48f66c], esi
je 0x42ce21
lea ecx, [esp + 0x80]
mov dword [0x48f548], edi
mov eax, dword [ebx]
push 4
push ecx
mov ecx, ebx
mov dword [esp + 0x88], esi
call dword [eax + 0x34]
mov edx, dword [esp + 0x80]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edx
push 0x40
call ebp
mov ecx, dword [esp + 0x80]
mov edi, eax
mov eax, dword [ebx]
push ecx
push edi
mov ecx, ebx
call dword [eax + 0x34]
mov edx, 0x48f540
test edx, edx
je 0x42ce04
cmp dword [0x48f544], esi
je 0x42ce04
mov ecx, edx
call fcn.00468f65
push edi
call fcn.00438420
add esp, 4
mov ecx, 0x48f540
push eax
call fcn.00468f0e
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x42ce27
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov eax, dword [ebx]
lea ecx, [esp + 0x20]
push 4
push ecx
mov ecx, ebx
mov dword [esp + 0x28], esi
call dword [eax + 0x34]
mov edx, dword [0x48f630]
push edx
push 0x40
call ebp
mov ecx, dword [esp + 0x20]
mov dword [0x48f62c], eax
mov edx, dword [ebx]
push ecx
push eax
mov ecx, ebx
call dword [edx + 0x34]
mov eax, dword [0x48f658]
mov edx, dword [0x48f654]
cmp eax, 0x258
mov dword [0x48f5cc], edx
mov dword [0x48f5c8], eax
jg 0x42ce7f
mov dword [0x48f6e0], 0x14
jmp 0x42ce96
xor ecx, ecx
cmp eax, 0x300
setg cl
dec ecx
and ecx, 0xfffffff8
add ecx, 0x20
mov dword [0x48f6e0], ecx
mov edx, dword [0x48f634]
mov ecx, dword [0x48f63c]
mov eax, dword [0x48f638]
mov dword [0x48f644], edx
mov edx, dword [0x48f640]
mov dword [0x48f64c], ecx
lea ecx, [esp + 0x1c]
mov dword [0x48f648], eax
mov dword [0x48f650], edx
mov eax, dword [ebx]
push 4
push ecx
mov ecx, ebx
mov dword [esp + 0x24], esi
call dword [eax + 0x34]
mov eax, dword [esp + 0x1c]
xor edi, edi
cmp eax, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x80], esi
jle 0x42d086
jmp 0x42ceff
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, dword [esp + 0x18]
mov edx, dword [ebx]
lea eax, [esp + 0x2c]
push 4
push eax
mov ecx, ebx
call dword [edx + 0x34]
mov edx, dword [ebx]
lea eax, [esp + 0x24]
push 4
push eax
mov ecx, ebx
call dword [edx + 0x34]
mov edx, dword [ebx]
lea eax, [esp + 0x10]
push 4
push eax
mov ecx, ebx
mov dword [esp + 0x18], esi
call dword [edx + 0x34]
cmp dword [esp + 0x14], esi
jne 0x42cf40
mov ecx, dword [esp + 0x10]
push ecx
push 0x40
call ebp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx]
push eax
push ecx
mov ecx, ebx
call dword [edx + 0x34]
mov edx, dword [ebx]
lea eax, [esp + 0x10]
push 4
push eax
mov ecx, ebx
call dword [edx + 0x34]
cmp edi, esi
jne 0x42cf72
mov ecx, dword [esp + 0x10]
push ecx
push 0x40
call ebp
mov dword [esp + 0x18], eax
mov edi, eax
mov eax, dword [esp + 0x10]
mov edx, dword [ebx]
push eax
push edi
mov ecx, ebx
call dword [edx + 0x34]
push 0x18
call fcn.0046517b
add esp, 4
cmp eax, esi
je 0x42cfa4
mov dword [eax + 4], esi
mov dword [eax], 0x478804
mov dword [eax + 0xc], esi
mov dword [eax + 8], 0x478804
mov ebp, eax
jmp 0x42cfa6
xor ebp, ebp
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00438420
add esp, 4
mov ecx, ebp
push eax
call fcn.00468f0e
push edi
call fcn.00438420
add esp, 4
lea ecx, [ebp + 8]
push eax
call fcn.00468f0e
mov ecx, dword [esp + 0x24]
xor edx, edx
mov eax, ecx
mov dword [esp + 0x28], ecx
shr eax, 4
div dword [0x48f6a8]
mov eax, dword [0x48f6a4]
cmp eax, esi
mov edi, edx
je 0x42d007
mov eax, dword [eax + edi*4]
cmp eax, esi
je 0x42d01a
cmp dword [eax + 8], ecx
je 0x42d001
mov eax, dword [eax]
cmp eax, esi
jne 0x42cff4
jmp 0x42d01a
cmp eax, esi
jne 0x42d042
jmp 0x42d01a
mov edx, dword [0x48f6a8]
push 1
push edx
mov ecx, 0x48f6a0
call fcn.00430fb0
mov ecx, 0x48f6a0
call fcn.00431020
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov edx, dword [0x48f6a4]
mov ecx, dword [edx + edi*4]
mov dword [eax], ecx
mov edx, dword [0x48f6a4]
mov dword [edx + edi*4], eax
mov dword [eax + 0xc], ebp
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x42d058
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x42d06b
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x80], eax
jl 0x42cef5
cmp dword [esp + 0x88], esi
je 0x42d19f
cmp dword [0x48f6d8], esi
jne 0x42d19f
mov eax, dword [0x48f628]
mov dword [esp + 0x80], esi
cmp eax, esi
jle 0x42d16a
push 0x6c
call fcn.0046517b
add esp, 4
cmp eax, esi
je 0x42d0fa
mov ecx, 0x4791e4
mov dword [eax], 0x4791d8
mov dword [eax + 4], esi
mov dword [eax + 0x10], esi
mov dword [eax + 0xc], esi
mov dword [eax + 8], esi
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], esi
mov dword [eax + 0x40], esi
mov dword [eax + 0x3c], esi
mov dword [eax + 0x38], esi
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], esi
mov dword [eax + 0x54], esi
mov dword [eax + 0x50], esi
mov dword [eax + 0x4c], esi
mov edi, eax
jmp 0x42d0fc
xor edi, edi
lea ecx, [edi + 0x18]
xor eax, eax
mov dword [edi + 0x14], esi
xor edx, edx
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x84]
lea eax, [edi + 0x58]
mov dword [edi + 0x58], edx
mov dword [eax + 4], edx
or eax, 0xffffffff
mov dword [edi + 0x60], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x64], esi
mov dword [edi + 0x2c], esi
mov dword [edi + 0x68], esi
mov ebp, dword [ecx + 8]
push eax
lea edx, [ebp + 1]
push edx
call fcn.00430e00
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x80]
inc eax
mov dword [ecx + ebp*4], edi
mov ecx, dword [0x48f628]
cmp eax, ecx
mov dword [esp + 0x80], eax
jl 0x42d0b3
push 4
mov dword [0x48f734], esi
call fcn.0046517b
add esp, 4
mov dword [eax], ebx
push esi
push esi
push esi
push esi
push eax
push 0x42a050
call fcn.00466c55
pop edi
pop esi
mov dword [0x48f6d8], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0x6c
ret 0xc
mov eax, dword [0x48f628]
mov dword [esp + 0x80], esi
cmp eax, esi
jle 0x42d51c
push 1
call fcn.00439100
mov edx, dword [ebx]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x58]
add esp, 4
rep stosd dword es:[edi], eax
lea eax, [esp + 0x54]
push 0x28
push eax
mov ecx, ebx
call dword [edx + 0x34]
push 0x6c
call fcn.0046517b
add esp, 4
cmp eax, esi
je 0x42d21f
mov ecx, 0x4791e4
mov dword [eax], 0x4791d8
mov dword [eax + 4], esi
mov dword [eax + 0x10], esi
mov dword [eax + 0xc], esi
mov dword [eax + 8], esi
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], esi
mov dword [eax + 0x40], esi
mov dword [eax + 0x3c], esi
mov dword [eax + 0x38], esi
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], esi
mov dword [eax + 0x54], esi
mov dword [eax + 0x50], esi
mov dword [eax + 0x4c], esi
mov ebp, eax
jmp 0x42d221
xor ebp, ebp
mov eax, dword [esp + 0x58]
cmp eax, 0xbb8
jbe 0x42d231
mov eax, 0x32
mov dword [ebp + 0x14], eax
mov edx, dword [esp + 0x5c]
lea ecx, [ebp + 0x18]
mov dword [ebp + 0x18], edx
mov eax, dword [esp + 0x60]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0x64]
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x68]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x6c]
cmp eax, 0x100
jne 0x42d271
cmp dword [esp + 0x70], 0xe5
jne 0x42d271
mov eax, 0x201
mov dword [esp + 0x6c], eax
mov dword [ebp + 0x58], eax
mov ecx, dword [esp + 0x70]
mov dword [ebp + 0x5c], ecx
mov dword [ebp + 0x60], 0xffffffff
mov edx, dword [esp + 0x74]
mov dword [ebp + 0x2c], esi
mov dword [ebp + 0x64], edx
mov eax, dword [esp + 0x78]
mov dword [ebp + 0x68], eax
mov eax, dword [esp + 0x54]
cmp eax, esi
mov dword [esp + 0x88], esi
jle 0x42d359
xor ecx, ecx
mov eax, dword [ebx]
mov dword [esp + 0x40], ecx
xor edx, edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x4c], ecx
push 0x10
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x3c], edx
push ecx
mov ecx, ebx
mov dword [esp + 0x44], edx
call dword [eax + 0x34]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov cx, word [esp + 0x3c]
mov dword [esp + 0x4c], edx
mov dx, word [esp + 0x30]
mov esi, eax
push eax
push 0x40
mov dword [esp + 0x50], esi
mov word [esp + 0x58], cx
mov word [esp + 0x4c], dx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [ebx]
push esi
push eax
mov ecx, ebx
mov dword [esp + 0x48], eax
call dword [edx + 0x34]
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
mov ecx, ebp
lea eax, [esi + 1]
push eax
call fcn.00430ca0
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x88]
lea ecx, [esi + esi*4]
lea esi, [esp + 0x40]
inc eax
lea edi, [edx + ecx*4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x88], eax
cmp eax, ecx
jl 0x42d2a6
xor esi, esi
mov edi, dword [esp + 0x84]
mov edx, dword [edi + 8]
mov eax, dword [edi + 4]
mov ecx, edx
mov dword [esp + 0x18], ecx
inc ecx
cmp ecx, esi
mov dword [esp + 0x88], ecx
jne 0x42d39a
cmp eax, esi
je 0x42d38f
push eax
mov dword [esp + 0x8c], edx
call fcn.004651a4
add esp, 4
mov dword [edi + 4], esi
mov dword [edi + 0xc], esi
mov dword [edi + 8], esi
jmp 0x42d4f5
cmp eax, esi
jne 0x42d3ea
lea eax, [ecx*4]
push eax
mov dword [esp + 0x8c], eax
call fcn.0046517b
mov ecx, dword [esp + 0x8c]
mov edx, eax
mov dword [edi + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x84]
inc eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 8], eax
jmp 0x42d4ee
mov ecx, dword [edi + 0xc]
cmp dword [esp + 0x88], ecx
jg 0x42d43c
mov ecx, dword [esp + 0x88]
cmp edx, ecx
jge 0x42d422
sub ecx, edx
lea edx, [eax + edx*4]
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x84]
lea eax, [ecx + 1]
mov dword [edi + 8], eax
jmp 0x42d4f5
jle 0x42d42d
sub edx, ecx
mov dword [esp + 0x88], edx
mov ecx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [edi + 8], eax
jmp 0x42d4f5
mov eax, dword [edi + 0x10]
cmp eax, esi
jne 0x42d466
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x42d45a
mov eax, 4
jmp 0x42d466
cmp eax, 0x400
jle 0x42d466
mov eax, 0x400
add eax, ecx
mov ecx, dword [esp + 0x88]
cmp ecx, eax
mov dword [esp + 0x14], eax
jl 0x42d47b
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x14]
lea eax, [edx*4]
push eax
call fcn.0046517b
mov ecx, dword [edi + 8]
mov esi, dword [edi + 4]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x2c], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x88]
mov ecx, dword [esp + 0x1c]
inc ecx
mov edx, dword [esi + 8]
mov dword [esp + 0x8c], ecx
sub ecx, edx
lea edi, [eax + edx*4]
xor eax, eax
rep stosd dword es:[edi], eax
mov edx, dword [esi + 4]
push edx
call fcn.004651a4
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x1c]
add esp, 8
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
xor esi, esi
mov edi, dword [esp + 0x84]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x18]
mov dword [eax + ecx*4], ebp
mov eax, dword [esp + 0x80]
mov ecx, dword [0x48f628]
inc eax
cmp eax, ecx
mov dword [esp + 0x80], eax
jl 0x42d1b3
mov dword [0x48f770], esi
pop edi
mov eax, 1
pop esi
pop ebp
mov dword [0x48f6dc], eax
mov dword [0x4893d0], eax
pop ebx
add esp, 0x6c
ret 0xc