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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x6c
mov dword [0x48f770], 1
push ebx
push ebp
push esi
xor esi, esi
cmp eax, esi
push edi
mov dword [0x48f6dc], esi
jne 0x42d56c
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 0x42d616
mov eax, dword [ebx]
push 4
push 0x48f548
mov ecx, ebx
call dword [eax + 0x34]
mov edx, dword [ebx]
lea eax, [esp + 0x80]
push 4
push eax
mov ecx, ebx
mov dword [esp + 0x88], esi
call dword [edx + 0x34]
mov ecx, dword [esp + 0x80]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ecx
push 0x40
call ebp
mov edx, dword [ebx]
mov edi, eax
mov eax, dword [esp + 0x80]
mov ecx, ebx
push eax
push edi
call dword [edx + 0x34]
mov ecx, 0x48f540
test ecx, ecx
je 0x42d5f9
cmp dword [0x48f544], esi
je 0x42d5f9
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 0x42d61c
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [ebx]
lea eax, [esp + 0x20]
push 4
push eax
mov ecx, ebx
mov dword [esp + 0x28], esi
call dword [edx + 0x34]
mov ecx, dword [0x48f630]
push ecx
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 0x42d674
mov dword [0x48f6e0], 0x14
jmp 0x42d68b
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 0x42d87b
jmp 0x42d6f4
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 0x42d735
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 0x42d767
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 0x42d799
mov dword [eax + 4], esi
mov dword [eax], 0x478804
mov dword [eax + 0xc], esi
mov dword [eax + 8], 0x478804
mov ebp, eax
jmp 0x42d79b
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 0x42d7fc
mov eax, dword [eax + edi*4]
cmp eax, esi
je 0x42d80f
cmp dword [eax + 8], ecx
je 0x42d7f6
mov eax, dword [eax]
cmp eax, esi
jne 0x42d7e9
jmp 0x42d80f
cmp eax, esi
jne 0x42d837
jmp 0x42d80f
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 0x42d84d
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x42d860
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 0x42d6ea
cmp dword [esp + 0x88], esi
je 0x42d994
cmp dword [0x48f6d8], esi
jne 0x42d994
mov eax, dword [0x48f628]
mov dword [esp + 0x80], esi
cmp eax, esi
jle 0x42d95f
push 0x6c
call fcn.0046517b
add esp, 4
cmp eax, esi
je 0x42d8ef
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 0x42d8f1
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 0x42d8a8
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 0x42dd11
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 0x42da14
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 0x42da16
xor ebp, ebp
mov eax, dword [esp + 0x58]
cmp eax, 0xbb8
jbe 0x42da26
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 0x42da66
cmp dword [esp + 0x70], 0xe5
jne 0x42da66
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 0x42db4e
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 0x42da9b
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 0x42db8f
cmp eax, esi
je 0x42db84
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 0x42dcea
cmp eax, esi
jne 0x42dbdf
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 0x42dce3
mov ecx, dword [edi + 0xc]
cmp dword [esp + 0x88], ecx
jg 0x42dc31
mov ecx, dword [esp + 0x88]
cmp edx, ecx
jge 0x42dc17
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 0x42dcea
jle 0x42dc22
sub edx, ecx
mov dword [esp + 0x88], edx
mov ecx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [edi + 8], eax
jmp 0x42dcea
mov eax, dword [edi + 0x10]
cmp eax, esi
jne 0x42dc5b
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x42dc4f
mov eax, 4
jmp 0x42dc5b
cmp eax, 0x400
jle 0x42dc5b
mov eax, 0x400
add eax, ecx
mov ecx, dword [esp + 0x88]
cmp ecx, eax
mov dword [esp + 0x14], eax
jl 0x42dc70
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 0x42d9a8
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