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

Disassembly:
xor ebp, ebp
cmp eax, esi
jle 0x504fff
jmp 0x504b40
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x58]
cmp dword [eax + ebp*4], 0
jne 0x504e58
mov ecx, dword [edi + 0x78]
push 0
push 0
push 0xe
push ecx
call dword [0x5977c4]
add edi, 0x5c
push 0xffffffffffffffff
push eax
mov ecx, edi
call 0x5e1208
mov edx, dword [esp + 0x30]
mov eax, dword [edx + ebp*4]
lea ecx, [edx + ebp*4]
cmp dword [eax - 8], 0xf
jl 0x504e42
lea edx, [esp + 0x4c]
push 4
push edx
call 0x5dea94
mov eax, dword [eax]
push 0x5e9bfc
push eax
call 0x5cb3ed
add esp, 8
lea ecx, [esp + 0x4c]
test eax, eax
sete bl
call 0x5e370c
test bl, bl
je 0x504e42
mov ecx, dword [esp + 0x30]
push 3
lea eax, [esp + 0x4c]
push 0xc
push eax
lea ecx, [ecx + ebp*4]
call 0x5de982
mov eax, dword [eax]
push 0x5e9bf8
push eax
mov byte [esp + 0xb4], 3
call 0x5cb3ed
add esp, 8
test eax, eax
je 0x504c19
mov eax, dword [esp + 0x30]
push 3
lea edx, [esp + 0x54]
push 0xc
push edx
lea ecx, [eax + ebp*4]
call 0x5de982
mov eax, dword [eax]
push 0x5e9bf4
push eax
call 0x5cb3ed
add esp, 8
lea ecx, [esp + 0x50]
test eax, eax
sete bl
call 0x5e370c
test bl, bl
je 0x504c1b
mov bl, 1
lea ecx, [esp + 0x48]
mov byte [esp + 0xac], 2
call 0x5e370c
test bl, bl
je 0x504e42
mov edx, dword [esp + 0x30]
push 8
lea ecx, [esp + 0x2c]
push 4
push ecx
lea ecx, [edx + ebp*4]
call 0x5de982
mov eax, dword [esp + 0x28]
push 0x10
push 0
push eax
mov byte [esp + 0xb8], 4
call 0x5cb858
mov edx, dword [esp + 0x3c]
add esp, 0xc
lea ecx, [esp + 0x44]
mov esi, eax
push 3
push 0xc
push ecx
lea ecx, [edx + ebp*4]
call 0x5de982
mov eax, dword [eax]
push 0x5e9bf8
push eax
call 0x5cb3ed
add esp, 8
lea ecx, [esp + 0x44]
test eax, eax
sete bl
call 0x5e370c
push ecx
test bl, bl
mov ecx, esp
je 0x504d33
mov dword [esp + 0x18], esp
push 0x5fe7d8
call 0x5e377a
push 1
push 2
lea eax, [esp + 0x24]
push esi
push eax
mov byte [esp + 0xc0], 4
call fcn.004880d0
mov ecx, eax
call fcn.004f0800
mov ecx, dword [esp + 0x18]
push 0x5fe7d8
push ecx
mov byte [esp + 0xb4], 6
call 0x5cb3ed
add esp, 8
test eax, eax
push esi
je 0x504d16
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call 0x5e3481
mov ecx, edi
call fcn.00566e80
mov byte [esp + 0xac], 4
lea ecx, [esp + 0x18]
jmp 0x504e2c
push 0x5e9bd4
mov ecx, edi
call fcn.00564460
mov byte [esp + 0xac], 4
lea ecx, [esp + 0x18]
jmp 0x504e2c
mov dword [esp + 0x18], esp
push 0x5fe7d8
call 0x5e377a
push 1
push 1
lea eax, [esp + 0x28]
push esi
push eax
mov byte [esp + 0xc0], 4
call fcn.004880d0
mov ecx, eax
call fcn.004f0800
mov ecx, dword [esp + 0x1c]
push 0x5fe7d8
push ecx
mov byte [esp + 0xb4], 8
call 0x5cb3ed
add esp, 8
test eax, eax
je 0x504d9b
push esi
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call 0x5e3481
mov ecx, edi
call fcn.00564b00
jmp 0x504e20
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x5fe7d8
call 0x5e377a
push 1
push 0
lea eax, [esp + 0x2c]
push esi
push eax
mov byte [esp + 0xc0], 8
call fcn.004880d0
mov ecx, eax
call fcn.004f0800
mov ecx, dword [esp + 0x20]
push 0x5fe7d8
push ecx
mov byte [esp + 0xb4], 0xa
call 0x5cb3ed
add esp, 8
test eax, eax
push esi
je 0x504e03
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call 0x5e3481
mov ecx, edi
call fcn.00564b00
add bl, ch
invalid
push 0x5e9bd4
mov ecx, edi
call fcn.00564460
lea ecx, [esp + 0x20]
mov byte [esp + 0xac], 8
call 0x5e370c
mov byte [esp + 0xac], 4
lea ecx, [esp + 0x1c]
call 0x5e370c
mov byte [esp + 0xac], 2
lea ecx, [esp + 0x28]
jmp 0x504fad
mov eax, dword [esp + 0x30]
push 0
mov ecx, edi
mov eax, dword [eax + ebp*4]
push eax
call fcn.00564460
jmp 0x504fb2
mov ecx, dword [esp + 0x30]
lea edx, [ecx + ebp*4]
lea ecx, [esp + 0x24]
push edx
call 0x5e3481
mov edx, dword [esp + 0xb4]
mov byte [esp + 0xac], 0xb
mov ecx, dword [edx + 0x10]
mov al, byte [edx + 0x16]
cmp ecx, 0x2bc
sete cl
xor bl, bl
test al, al
mov byte [esp + 0x13], bl
mov byte [esp + 0x12], bl
je 0x504e97
mov bl, 1
mov al, byte [edx + 0x15]
test al, al
je 0x504ea3
mov byte [esp + 0x13], 1
mov al, byte [edx + 0x14]
test al, al
je 0x504eaf
mov byte [esp + 0x12], 1
mov eax, dword [esp + 0x70]
mov dword [esp + 0x68], 0x3c
and eax, 0xbfffffff
test cl, cl
je 0x504ecd
mov ecx, 0xe8000001
or al, 1
jmp 0x504ed4
mov ecx, 0xe8000000
and al, 0xfe
test bl, bl
je 0x504edf
or ecx, 8
or al, 8
jmp 0x504ee4
and ecx, 0xfffffff7
and al, 0xf7
mov bl, byte [esp + 0x13]
test bl, bl
je 0x504ef3
or ecx, 4
or al, 4
jmp 0x504ef8
and ecx, 0xfffffffb
and al, 0xfb
mov bl, byte [esp + 0x12]
test bl, bl
je 0x504f0b
or ecx, 2
or al, 2
mov dword [esp + 0x6c], ecx
jmp 0x504f14
and ecx, 0xfffffffd
and al, 0xfd
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
mov eax, dword [edx + 0x3c]
mov dword [esp + 0x7c], eax
lea edi, [edx + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x82]
mov eax, ecx
mov esi, edi
mov edi, ebx
mov byte [esp + 0x80], 0x86
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [edx]
and ecx, 3
mov ebx, dword [0x5977c4]
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x40]
mov ecx, eax
shl ecx, 4
mov edx, dword [esi + 0x78]
sub ecx, eax
push 0
push 0
neg ecx
push 0xe
push edx
mov dword [esp + 0x84], ecx
call ebx
lea edi, [esi + 0x5c]
push 0xffffffffffffffff
push eax
mov ecx, edi
call 0x5e1208
lea eax, [esp + 0x68]
mov ecx, edi
push eax
call 0x5e1342
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0x78]
push ecx
push 0
push 0xc2
push edx
call ebx
mov byte [esp + 0xac], 2
lea ecx, [esp + 0x24]
call 0x5e370c
mov eax, dword [esp + 0x34]
inc ebp
cmp ebp, eax
jl 0x504b3c
jmp 0x504fff
mov eax, dword [esp + 0x58]
mov dword [esp + 0x54], 0x5999c4
test eax, eax
je 0x505018
push eax
call 0x5e2b2c
add esp, 4
lea ecx, [esp + 0x2c]
mov byte [esp + 0xac], 0
call 0x5e1686
lea ecx, [esp + 0xb8]
mov dword [esp + 0xac], 0xffffffff
call 0x5e370c
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xa0
ret 8